package com.jiyejia.activity;

import com.jiyejia.R;
import com.jiyejia.widgets.AutoTextView;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.TextView;
/**
 * 闪屏界面
 * @author cetczhoucong
 *
 */
public class SplashActivity extends Activity implements OnClickListener{
	private TextView mPhoneNum;
	private AutoTextView mAdView;
	int count = 0;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.splash);
		initView();
	}
	private void initView(){
		mPhoneNum = (TextView)findViewById(R.id.phonenum);
		mAdView = (AutoTextView)findViewById(R.id.adview);
		mPhoneNum.setOnClickListener(this);
		
	}
	@Override
	public void onClick(View v) {
		switch(v.getId()){
		case R.id.phonenum:
			count++;
			mAdView.setText("this is the "+count+" times");
			mAdView.next();
			System.out.println("this is the "+count+" times");
			break;
			default:
				break;
		}
		
		
	}

}
